<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" 
  "http://www.w3.org/TR/html4/strict.dtd">
<html>
  <head>
    <title>Outfox Audio for Firebug</title>
    <style type="text/css">@import url("../outfox.css");</style>
    <script type="text/javascript" src="../json2.js"></script>
    <script type="text/javascript" src="../../../js/outfox.js"></script>
    <script type="text/javascript">
      var urls = ['./sounds/Horse.mp3', './sounds/Error.mp3' , './sounds/FileEnd.mp3', './sounds/FileRequest.mp3', 
                  './sounds/FileStart.mp3', './sounds/New.mp3', './sounds/Off.mp3'];
      function onLoad(event) {
          outfox.init("outfox", JSON.stringify, JSON.parse).addCallback(function(version) {
              console.debug(value);
          });
          var def = outfox.startService("audio");
          def.addCallback(function(cmd) {
              outfox.audio.addObserver(function(of, response) {
                console.debug(response);
              });
              outfox.audio.say('Outfox is ready.');
          });
          def.addErrback(function(cmd) {
              var box = document.getElementById('status');
              box.innerHTML = cmd.description;
          });
      }
    </script>
  </head>
  <body onload="onLoad();">
    <h1>Outfox Audio for Firebug</h1>
    <div id="status"></div>
    <div id="outfox"></div>
    <div class="menu"><a href="../index.html">Samples Index</a></div>
    <p>Use the Firebug console to control the Outfox audio service on this page. The method <i>console.debug</i> is set as the callback for channel 0 responses.</p>
    <p class="copyright">Copyright (c) 2008, 2009 Carolina Computer Assistive Technology under the terms of the BSD license.</p>
  </body>
</html>
